After completing this lesson, you'll be able to:
In this lesson, you will:
After completing this lesson, you'll be able to:
In this lesson, you will:
If you're taking a live Safe Software-hosted training course or using an on-demand lab for this course, we've already imported the content for this lesson into your FME Flow.
If you're completing this lesson with your own FME Flow, you must import the starting project with the content into your FME Flow.
See FME Flow Authoring: Instructions to Import the Starting Project for directions to import the project to your own FME Flow.
Parameters are controls that define how FME operates, and almost every component in FME has parameters of one type or another. FME uses parameters to reference system settings, control how readers and writers operate, hold values that feed into workspaces, and more. You've likely encountered them while using FME already. In the previous course, you used a parameter to pass source data into a workspace through a workspace app.
Often, workspaces have parameters that take input values to control how the workspace functions; we call these user parameters. Workspace authors create user parameters to easily set specific values at runtime, giving the end-user greater control over how the workspace reads, writes, and transforms their data. There are many types of user parameters; some common to self-serve workflows include:
For a complete list of user parameters, see our documentation on Creating and Modifying User Parameter Types.
For more in-depth training on the various types of parameters in FME, you can take Build Self-Serve Workflows with Parameters or the FME Form Advanced module Create Flexible Workspaces with Parameters.
You can create a user parameter directly at the setting where you want to reference the parameter value.

Alternatively, you can create and manage all workspace user parameters from the User Parameter Manager, which you access by right-clicking User Parameters in the Navigator window on FME Workbench and selecting Manage User Parameters.
You can use the User Parameter Manager to add (A), reorder (B and C), group (D), and configure parameters (E). The left-hand side of the User Parameter Manager displays all your user parameters, along with options to add new ones, group, copy and paste, reorder, and delete. The right-hand side shows the properties for the newly created or selected parameter. In the parameter properties, you can customize each parameter's requirements and visibility. If a parameter is required, you must provide a value for the workspace to run; FME disables the Run button if the value is empty. Whether your workspace presents the parameter to the end-user is set by its Visibility: Always Show presents it for input, Always Hide keeps it out of the prompt so the workspace uses the default value, and Conditional lets you control visibility based on another parameter's value. You may want to hide a parameter when you set a value in one place and link to it in multiple places throughout the workspace, without allowing the end-user to change it.

Once you create the parameter, you must link it to the setting you wish to control with the parameter.

After you deploy your workspace with user parameters on FME Flow and begin to create your workspace app, you will see a Parameter Defaults section on the Create Workspace App page. This section will only display parameters whose Visibility is set to Always Show, like the Run Workspace page. If a parameter is set to Always Hide, it will not be visible or editable when you create your app.
For example, a workspace with the following three user parameters will display only the source file and coordinate system parameters in the Parameter Defaults section, since they are set to Always Show. The password parameter is set to Always Hide and does not appear in Parameter Defaults.

Before creating your app, you can modify the default values set for each parameter or deselect 'Show in App' to remove the parameter from the app.

If you do not show your parameter in the app, FME will use the default value for the parameter when running the workspace.

User parameters, their visibility settings, default values, and the ability to hide a parameter in your app let you choose which controls you grant to end-users in your self-serve workflows.

Jennifer, a GIS Specialist, has a workspace app that hands colleagues every layer in the community geodatabase as Esri Shapefiles. Colleagues keep asking for specific layers and to have the data in various formats. She wants to add user parameters so app users can choose the layers and output format themselves.
In this exercise, you will:

The app opens in another tab. There's nothing to configure, because the workspace has no user parameters yet.



Creating a user parameter directly from the setting you want to control links the two automatically, saving you from wiring them together afterward.

Select Community Map Layers to Download, then click OK.


FORMAT and the Label to Output Format.










You have created a self-serve app where end users may choose which layers they receive and in which format.
If you're taking a live Safe Software-hosted training course or using an on-demand lab for this course, we've already imported the content for this lesson into your FME Flow.
If you're completing this lesson with your own FME Flow, you must import the starting project with the content into your FME Flow.
See FME Flow Authoring: Instructions to Import the Starting Project for directions to import the project to your own FME Flow.
Parameters are controls that define how FME operates, and almost every component in FME has parameters of one type or another. FME uses parameters to reference system settings, control how readers and writers operate, hold values that feed into workspaces, and more. You've likely encountered them while using FME already. In the previous course, you used a parameter to pass source data into a workspace through a workspace app.
Often, workspaces have parameters that take input values to control how the workspace functions; we call these user parameters. Workspace authors create user parameters to easily set specific values at runtime, giving the end-user greater control over how the workspace reads, writes, and transforms their data. There are many types of user parameters; some common to self-serve workflows include:
For a complete list of user parameters, see our documentation on Creating and Modifying User Parameter Types.
For more in-depth training on the various types of parameters in FME, you can take Build Self-Serve Workflows with Parameters or the FME Form Advanced module Create Flexible Workspaces with Parameters.
You can create a user parameter directly at the setting where you want to reference the parameter value.

Alternatively, you can create and manage all workspace user parameters from the User Parameter Manager, which you access by right-clicking User Parameters in the Navigator window on FME Workbench and selecting Manage User Parameters.
You can use the User Parameter Manager to add (A), reorder (B and C), group (D), and configure parameters (E). The left-hand side of the User Parameter Manager displays all your user parameters, along with options to add new ones, group, copy and paste, reorder, and delete. The right-hand side shows the properties for the newly created or selected parameter. In the parameter properties, you can customize each parameter's requirements and visibility. If a parameter is required, you must provide a value for the workspace to run; FME disables the Run button if the value is empty. Whether your workspace presents the parameter to the end-user is set by its Visibility: Always Show presents it for input, Always Hide keeps it out of the prompt so the workspace uses the default value, and Conditional lets you control visibility based on another parameter's value. You may want to hide a parameter when you set a value in one place and link to it in multiple places throughout the workspace, without allowing the end-user to change it.

Once you create the parameter, you must link it to the setting you wish to control with the parameter.

After you deploy your workspace with user parameters on FME Flow and begin to create your workspace app, you will see a Parameter Defaults section on the Create Workspace App page. This section will only display parameters whose Visibility is set to Always Show, like the Run Workspace page. If a parameter is set to Always Hide, it will not be visible or editable when you create your app.
For example, a workspace with the following three user parameters will display only the source file and coordinate system parameters in the Parameter Defaults section, since they are set to Always Show. The password parameter is set to Always Hide and does not appear in Parameter Defaults.

Before creating your app, you can modify the default values set for each parameter or deselect 'Show in App' to remove the parameter from the app.

If you do not show your parameter in the app, FME will use the default value for the parameter when running the workspace.

User parameters, their visibility settings, default values, and the ability to hide a parameter in your app let you choose which controls you grant to end-users in your self-serve workflows.

Jennifer, a GIS Specialist, has a workspace app that hands colleagues every layer in the community geodatabase as Esri Shapefiles. Colleagues keep asking for specific layers and to have the data in various formats. She wants to add user parameters so app users can choose the layers and output format themselves.
In this exercise, you will:

The app opens in another tab. There's nothing to configure, because the workspace has no user parameters yet.



Creating a user parameter directly from the setting you want to control links the two automatically, saving you from wiring them together afterward.

Select Community Map Layers to Download, then click OK.


FORMAT and the Label to Output Format.










You have created a self-serve app where end users may choose which layers they receive and in which format.